<table width="100%" border="0">
  <tr>
    <input type="hidden" name="stocktype_<%=@no%>" id="stocktype_<%=@no%>" value="S"/>
    <td align="right"><input type="hidden" id="data_<%=@no%>" name="data_<%=@no%>" value="<%=@id%>"/><%=@stock.s_symbol%>
      <br/>
      <input type="checkbox" name="check_<%=@no%>" id="check_<%=@no%>" value="Y" onclick="showhidearea('check_<%=@no%>','calarea_<%=@no%>','chartarea_<%=@no%>');"/> Market
    </td>
    <td width="40px" valign="middle" align="center"><a href="/project/price_return_chart/<%=@id%>?stock_type=S" target="_blank"><img src="/images/graph-icon.png" border="0" width="30px" alt="Price & Return"/></a></td>
    <td width="100px" valign="middle" align="center">
      <span id="calarea_<%=@no%>">
      Event Date<br/>
      <input type="text" style="width:70px;" name="date_<%=@no%>" id="date_<%=@no%>"/>
      <img src="/images/calendar.png" border="0" id="trigger_<%=@no%>" style="cursor: pointer;" title="Date selector"/>
      <%
        min_year,max_year = get_minmax_year(@id, 'S')
      %>
      <script type="text/javascript">
        Calendar.setup({
          inputField  : "date_<%=@no%>",
          button      : "trigger_<%=@no%>",
          ifFormat    : "%Y-%m-%d",
          daFormat    : "%Y-%m-%d",
          range       : [<%=min_year%>,<%=max_year%>],
          singleClick : true
        });
      </script>
      </span>
    </td>
    <td width="120px" align="right">
      Before D/E: <input type="text" name="est_de_<%=@no%>" value="0.0" style="width:40px;"/><br/>
      After D/E: <input type="text" name="event_de_<%=@no%>" value="0.0" style="width:40px;"/>
    </td>
    <td width="280px" valign="middle" align="center">
      <span id="chartarea_<%=@no%>"></span>
    </td>
</tr>
</table>